# -*- coding = 'utf-8' -*-

import os

lines = []
for i in range(1,10):
    line = ''
    for j in range(1,i+1):
        line = line + '{}*{}={}   '.format(j,i,j*i)
        if i==j:
            lines.append(line)
            break


pathname = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(pathname,'cuilijia.txt'),mode='w') as fw:
    for r in lines:
        fw.write(r+'\n')





